import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:makeaplan/manager/them/consts.dart';
import 'package:makeaplan/manager/them/them_manager.dart';
import 'package:makeaplan/utils/utils.dart';

undrawChecklistRe2w7v() {
  // 叶子
  final c1 =
      Utils.colorAsString(ThemManager().themColors().illustration.background2);
  // 叶脉
  final c2 =
      Utils.colorAsString(ThemManager().themColors().illustration.background);
  final c3 =
      Utils.colorAsString(ThemManager().themColors().illustration.background2);
  final c4 =
      Utils.colorAsString(ThemManager().themColors().illustration.divider);

  return '''
<?xml version="1.0" encoding="utf-8"?>
<svg id="ee370ff1-147c-4ceb-b530-4ba4072ed128" data-name="Layer 1" width="800.12205"
    height="541.4453" viewBox="0 0 800.12205 541.4453" xmlns="http://www.w3.org/2000/svg">
    <path
        d="M 594.145 265.329 C 593.305 266.019 592.465 266.679 591.605 267.329 L 379.465 267.329 C 377.885 266.679 376.311 266.013 374.745 265.329 C 352.349 255.583 331.504 242.605 312.875 226.809 C 300.505 216.329 289.125 205.509 280.875 195.369 C 269.365 181.219 258.765 165.799 253.835 148.229 C 248.915 130.659 250.385 110.519 261.375 95.949 C 264.778 91.467 268.962 87.636 273.725 84.639 C 274.515 84.139 275.315 83.659 276.135 83.209 C 289.315 75.809 305.945 74.009 320.785 77.839 C 342.035 83.329 359.695 98.659 372.295 116.639 C 384.895 134.609 393.075 155.249 401.135 175.659 C 409.315 139.229 434.085 106.599 467.545 90.009 C 500.995 73.419 542.555 73.619 575.295 91.589 C 585.596 97.278 594.902 104.607 602.845 113.289 C 603.635 114.139 604.405 115.009 605.165 115.889 C 621.135 134.379 631.125 158.059 631.945 182.479 C 632.995 213.939 618.415 245.539 594.145 265.329 Z"
        fill="${c1}" />
    <path
        d="M 387.945 267.329 L 384.945 267.329 C 384.905 266.659 384.855 265.999 384.795 265.329 C 383.746 252.249 381.551 239.286 378.235 226.589 C 370.626 197.603 357.63 170.308 339.925 146.129 C 322.27 121.873 300.014 101.329 274.425 85.669 C 274.045 85.452 273.787 85.072 273.725 84.639 C 273.526 83.505 274.629 82.581 275.711 82.976 C 275.788 83.004 275.863 83.039 275.935 83.079 C 276.004 83.119 276.07 83.163 276.135 83.209 C 290.632 92.046 304.09 102.485 316.255 114.329 C 338.014 135.556 355.559 160.708 367.965 188.459 C 378.909 212.764 385.612 238.763 387.785 265.329 C 387.845 265.999 387.895 266.669 387.945 267.329 Z"
        fill="${c2}" />
    <path
        d="M 605.165 115.889 C 605.143 115.901 605.119 115.907 605.095 115.909 C 602.905 116.309 600.705 116.729 598.525 117.179 C 580.63 120.854 563.112 126.174 546.195 133.069 C 529.322 139.955 513.092 148.321 497.695 158.069 C 482.278 167.812 467.739 178.881 454.245 191.149 C 440.75 203.4 428.371 216.826 417.255 231.269 C 408.946 242.091 401.391 253.471 394.645 265.329 C 394.265 265.989 393.895 266.659 393.525 267.329 L 390.095 267.329 C 390.455 266.659 390.825 265.989 391.205 265.329 C 399.367 250.799 408.726 236.975 419.185 223.999 C 430.751 209.639 443.571 196.337 457.495 184.249 C 471.33 172.23 486.179 161.43 501.875 151.969 C 517.636 142.471 534.208 134.386 551.395 127.809 C 568.074 121.433 585.293 116.573 602.845 113.289 C 603.335 113.199 603.815 113.109 604.305 113.019 C 606.175 112.679 606.975 115.499 605.165 115.889 Z"
        fill="${c2}" />
    <path
        d="M 634.208 268.463 L 152.208 268.463 C 142.825 268.476 135.221 276.079 135.208 285.463 L 135.208 471.463 C 135.221 480.846 142.825 488.449 152.208 488.463 L 634.208 488.463 C 643.591 488.449 651.195 480.846 651.208 471.463 L 651.208 285.463 C 651.195 276.079 643.591 268.476 634.208 268.463 Z M 649.208 471.463 C 649.198 479.743 642.488 486.453 634.208 486.463 L 152.208 486.463 C 143.928 486.453 137.218 479.743 137.208 471.463 L 137.208 285.463 C 137.218 277.182 143.928 270.473 152.208 270.463 L 634.208 270.463 C 642.488 270.473 649.198 277.182 649.208 285.463 Z"
        fill="${c4}" />
    <path
        d="M 272.802 426.066 C 237.168 426.066 214.897 387.926 232.713 357.414 C 250.53 326.903 295.073 326.903 312.89 357.414 C 316.954 364.373 319.093 372.264 319.093 380.298 C 319.063 405.564 298.355 426.038 272.802 426.066 Z M 272.802 336.109 C 238.397 336.109 216.893 372.933 234.096 402.393 C 251.299 431.853 294.306 431.853 311.508 402.393 C 315.431 395.675 317.496 388.055 317.496 380.298 C 317.468 355.905 297.474 336.136 272.802 336.109 Z"
        fill="${c4}" style="" />
    <path
        d="M 553.314 351.101 L 368.952 351.101 C 363.597 351.105 359.2 355.288 358.991 360.579 C 358.978 360.707 358.973 360.837 358.975 360.965 C 358.983 366.41 363.446 370.822 368.952 370.829 L 553.314 370.829 C 560.995 370.829 565.794 362.61 561.954 356.033 C 560.173 352.982 556.879 351.101 553.314 351.101 Z"
        fill="${c3}" style="" />
    <path
        d="M 553.314 389.767 L 368.952 389.767 C 363.597 389.771 359.2 393.954 358.991 399.244 C 358.978 399.373 358.973 399.502 358.975 399.631 C 358.983 405.076 363.446 409.488 368.952 409.495 L 553.314 409.495 C 560.995 409.495 565.794 401.276 561.954 394.699 C 560.173 391.648 556.879 389.767 553.314 389.767 Z"
        fill="${c3}" style="" />
    <path
        d="M 267.638 400.296 C 266.346 400.298 265.089 399.885 264.055 399.119 L 263.991 399.072 L 250.5 388.859 C 246.838 386.084 247.586 380.43 251.848 378.681 C 253.826 377.869 256.091 378.163 257.791 379.451 L 266.529 386.075 L 287.18 359.448 C 289.195 356.851 292.957 356.359 295.583 358.351 L 295.455 358.524 L 295.587 358.354 C 298.211 360.347 298.706 364.064 296.696 366.662 L 272.406 397.983 C 271.268 399.446 269.505 400.301 267.638 400.296 Z"
        fill="${c3}" style="" />
    <path
        d="M 790.549 536.607 L 1.734 536.607 C 0.141 536.607 -0.856 537.502 -0.059 538.217 C 0.311 538.549 0.995 538.752 1.734 538.752 L 790.549 538.752 C 792.142 538.752 793.138 537.858 792.341 537.143 C 791.971 536.81 791.287 536.607 790.549 536.607 Z"
        fill="${c4}" style="" />
    <path
        d="M 545.51 220.279 C 524.62 217.405 503.405 217.884 482.665 221.696 C 461.986 225.476 442.022 232.456 423.493 242.384 C 413.079 247.98 403.195 254.51 393.964 261.893 C 392.455 263.098 394.59 265.209 396.085 264.015 C 412.284 251.129 430.443 240.921 449.872 233.779 C 469.147 226.65 489.407 222.54 509.936 221.594 C 521.552 221.061 533.193 221.589 544.713 223.172 C 545.508 223.362 546.314 222.904 546.558 222.124 C 546.773 221.326 546.306 220.503 545.511 220.279 Z"
        fill="${c2}" />
</svg>
  ''';
}

class AddMorePlan extends StatelessWidget {
  final String text;

  const AddMorePlan({
    Key key,
    this.text,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          SvgPicture.string(
            undrawChecklistRe2w7v(),
            width: 200,
            height: 200,
          ),
          Padding(
            padding: const EdgeInsets.only(top: padding_2x),
            child: Text(
              text,
              style: TextStyle(
                color: ThemManager().themColors().basic.text,
                fontSize: ThemManager().fontSize().middle,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
